import { postRequest, getRequest } from '/@/lib/axios';

export const showdownApi = {
  getTbDowntimeTcm2280(param:any, config?: any) {
    return postRequest( '/eapi/shutdown/getTbDowntimeTcm2280', param, config );
  },
  updateTbDowntimeTcm2280(param:any, config?: any){
    return postRequest( '/eapi/shutdown/updateTbDowntimeTcm2280', param, config );
  },
  getTbDowntimeCal2150(param:any, config?: any) {
    return postRequest( '/eapi/shutdown/getTbDowntimeCal2150', param, config );
  },
  updateTbDowntimeCal2150(param:any, config?: any){
    return postRequest( '/eapi/shutdown/updateTbDowntimeCal2150', param, config );
  },
  getTbDowntimeCal1630(param:any, config?: any) {
    return postRequest( '/eapi/shutdown/getTbDowntimeCal1630', param, config );
  },
  updateTbDowntimeCal1630(param:any, config?: any){
    return postRequest( '/eapi/shutdown/updateTbDowntimeCal1630', param, config );
  },
  getTbDowntimeCgl1870(param:any, config?: any) {
    return postRequest( '/eapi/shutdown/getTbDowntimeCgl1870', param, config );
  },
  updateTbDowntimeCgl1870(param:any, config?: any){
    return postRequest( '/eapi/shutdown/updateTbDowntimeCgl1870', param, config );
  },
  tbDowntimeCal1630stops(param:any, config?: any){
    return postRequest( '/eapi/shutdown/tbDowntimeCal1630stops', param, config );
  },
  tbDowntimeCal2150stops(param:any, config?: any){
    return postRequest( '/eapi/shutdown/tbDowntimeCal2150stops', param, config );
  },
  tbDowntimeCgl1870stops(param:any, config?: any){
    return postRequest( '/eapi/shutdown/tbDowntimeCgl1870stops', param, config );
  },
  tbDowntimeTcm2280stops(param:any, config?: any){
    return postRequest( '/eapi/shutdown/tbDowntimeTcm2280stops', param, config );
  },
  getCountGraph2280(param:any, config?: any){
    return postRequest( '/eapi/shutdown/tbDowntimeTcm2280crew', param, config );
  },
  getCalendarGraph2280(param:any, config?: any){
    return postRequest( '/eapi/shutdown/tbDowntimeTcm2280rate', param, config );
  },
  getCountGraph1870(param:any, config?: any){
    return postRequest( '/eapi/shutdown/tbDowntimeCgl1870crew', param, config );
  },
  getCalendarGraph1870(param:any, config?: any){
    return postRequest( '/eapi/shutdown/tbDowntimeCgl1870rate', param, config );
  },
  getCountGraph1630(param:any, config?: any){
    return postRequest( '/eapi/shutdown/tbDowntimeCal1630crew', param, config );
  },
  getCalendarGraph1630(param:any, config?: any){
    return postRequest( '/eapi/shutdown/tbDowntimeCal1630rate', param, config );
  },
  getCountGraph2150(param:any, config?: any){
    return postRequest( '/eapi/shutdown/tbDowntimeCal2150crew', param, config );
  },
  getCalendarGraph2150(param:any, config?: any){
    return postRequest( '/eapi/shutdown/tbDowntimeCal2150rate', param, config );
  },
};

  // -------------- 标准作业率管理 -----------

  export const listApi = {
    page ( param: any, config?: any )
    {
      return postRequest( '/eapi/shutdown/tbDowntimePlanquery', param, config );
    },
    insert ( param: any, config?: any )
    {
      return postRequest( '/eapi/shutdown/tbDowntimePlanadd', param, config );
    },
    edit ( param: any, config?: any )
    {
      return postRequest( '/eapi/shutdown/tbDowntimePlanupdate', param, config );
    },
    delete ( param: any, config?: any )
    {
      return postRequest( '/eapi/shutdown/tbDowntimePlandel', param, config );
    }
  }
